package com.tboss.template.system.dto;

import java.io.Serializable;
import java.util.List;

public class MapGrpFnDto implements Serializable {

	private static final long serialVersionUID = -6457687764871677699L;
	private String fnHideYN;
	private String fnUseYN;
	private String fnHighestLevlYN;
	private String fnAlias;
	private String fnServletUrl;
	private String cdTpId;
	private String fnRegId;
	private String fnRegDate;
	private String fnModId;
	private String fnModDate;
	private String fnDesc;
	private List<MapGrpFnDto> items;
	
	private String grpId;
	private String fnId;
	private String fnParentId;
	private Integer fnIdx;
	private Integer fnParentIdx;
	private Integer fnOrder;
	private String fnGroupId;
	private String mapFnUseYN;
	private Integer fnChmod;
	private Boolean fnCollapsed = false;
	
	public String getFnHideYN(){ return (this.fnHideYN != null) ? this.fnHideYN : "N"; }
	public void setFnHideYN(String fnHideYN){ this.fnHideYN = fnHideYN; }
	
	public String getFnUseYN(){ return (this.fnUseYN != null) ? this.fnUseYN : "Y"; }
	public void setFnUseYN(String fnUseYN){ this.fnUseYN = fnUseYN; }

	public String getFnHighestLevlYN(){ return (this.fnHighestLevlYN != null) ? this.fnHighestLevlYN : "N"; }
	public void setFnHighestLevlYN(String fnHighestLevlYN){ this.fnHighestLevlYN = fnHighestLevlYN; }
	
	public String getFnAlias(){ return this.fnAlias; }
	public void setFnAlias(String fnAlias){ this.fnAlias = fnAlias; }

	public String getFnServletUrl(){ return this.fnServletUrl; }
	public void setFnServletUrl(String fnServletUrl){ this.fnServletUrl = fnServletUrl; }

	public String getCdTpId(){ return this.cdTpId; }
	public void setCdTpId(String cdTpId){ this.cdTpId = cdTpId; }
	
	public String getFnRegId(){ return this.fnRegId; }
	public void setFnRegId(String fnRegId){ this.fnRegId = fnRegId; }
	
	public String getFnRegDate(){ return this.fnRegDate; }
	public void setFnRegDate(String fnRegDate){ this.fnRegDate = fnRegDate; }
	
	public String getFnModId(){ return this.fnModId; }
	public void setFnModId(String fnModId){ this.fnModId = fnModId; }
	
	public String getFnModDate(){ return this.fnModDate; }
	public void setFnModDate(String fnModDate){ this.fnModDate = fnModDate; }
	
	public String getFnDesc(){ return this.fnDesc; }
	public void setFnDesc(String fnDesc){ this.fnDesc = fnDesc; }
	
	public List<MapGrpFnDto> getItems(){ return this.items; }
	public void setItems(List<MapGrpFnDto> items){ this.items = items; }
	
	
	
	public String getGrpId(){ return this.grpId; }
	public void setGrpId(String grpId){ this.grpId = grpId; }
	
	public String getFnId(){ return this.fnId; }
	public void setFnId(String fnId){ this.fnId = fnId.toUpperCase(); }
	
	public String getFnParentId(){ return this.fnParentId; }
	public void setFnParentId(String fnParentId){ this.fnParentId = fnParentId; }
	
	public Integer getFnIdx(){ return this.fnIdx; }
	public void setFnIdx(Integer fnIdx){ this.fnIdx = fnIdx; }
	
	public Integer getFnParentIdx(){ return this.fnParentIdx; }
	public void setFnParentIdx(Integer fnParentIdx){ this.fnParentIdx = fnParentIdx; }
	
	public Integer getFnOrder(){ return this.fnOrder; }
	public void setFnOrder(Integer fnOrder){ this.fnOrder = fnOrder; }	
	
	public String getFnGroupId(){ return this.fnGroupId; }
	public void setFnGroupId(String fnGroupId){ this.fnGroupId = fnGroupId; }	
	
	public String getMapFnUseYN(){ return (this.mapFnUseYN != null) ? this.mapFnUseYN : "Y"; }
	public void setMapFnUseYN(String mapFnUseYN){ this.mapFnUseYN = mapFnUseYN; }

	public Integer getFnChmod(){ return this.fnChmod; }
	public void setFnChmod(Integer fnChmod){ this.fnChmod = fnChmod; }
	
	public Boolean getFnCollapsed(){ return this.fnCollapsed; }
	public void setFnCollapsed(Boolean fnCollapsed){ this.fnCollapsed = fnCollapsed; }
	
	@Override
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("{");
		sb.append("\"fnHideYN\":\"").append(this.fnHideYN).append("\",");
		sb.append("\"fnUseYN\":\"").append(this.fnUseYN).append("\",");
		sb.append("\"fnHighestLevlYN\":\"").append(this.fnHighestLevlYN).append("\",");
		sb.append("\"fnAlias\":\"").append(this.fnAlias).append("\",");
		sb.append("\"fnServletUrl\":\"").append(this.fnServletUrl).append("\",");
		sb.append("\"cdTpId\":\"").append(this.cdTpId).append("\",");
		sb.append("\"fnRegId\":\"").append(this.fnRegId).append("\",");
		sb.append("\"fnRegDate\":\"").append(this.fnRegDate).append("\",");
		sb.append("\"fnModId\":\"").append(this.fnModId).append("\",");
		sb.append("\"fnModDate\":\"").append(this.fnModDate).append("\",");
		sb.append("\"fnDesc\":\"").append(this.fnDesc).append("\",");
		sb.append("\"grpId\":\"").append(this.grpId).append("\",");
		sb.append("\"fnId\":\"").append(this.fnId).append("\",");
		sb.append("\"fnParentId\":\"").append(this.fnParentId).append("\",");
		sb.append("\"fnIdx\":").append(this.fnIdx).append(",");
		sb.append("\"fnParentIdx\":").append(this.fnParentIdx).append(",");
		sb.append("\"fnOrder\":").append(this.fnOrder).append(",");
		sb.append("\"fnGroupId\":\"").append(this.fnGroupId).append("\",");
		sb.append("\"mapFnUseYN\":\"").append(this.mapFnUseYN).append("\",");
		sb.append("\"fnChmod\":\"").append(this.fnChmod).append("\",");
		sb.append("\"fnCollapsed\":\"").append(this.fnCollapsed).append("\"");
		sb.append("}");
		
		return sb.toString();
	}
	
}
